package com.syt.model.order;

import com.baomidou.mybatisplus.annotation.*;
import com.syt.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author XXXX
 * @since 2023-02-26
 */
@Getter
@Setter
@TableName("order_info")
@ApiModel(value = "OrderInfo对象", description = "订单表")
public class OrderInfo  extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("订单交易号")
    @TableField("out_trade_no")
    private String outTradeNo;

    @ApiModelProperty("医院编号")
    @TableField("hoscode")
    private String hoscode;

    @ApiModelProperty("医院名称")
    @TableField("hosname")
    private String hosname;

    @ApiModelProperty("科室编号")
    @TableField("depcode")
    private String depcode;

    @ApiModelProperty("科室名称")
    @TableField("depname")
    private String depname;

    @ApiModelProperty("医生职称")
    @TableField("title")
    private String title;

    @ApiModelProperty("排班编号（医院自己的排班主键）")
    @TableField("hos_schedule_id")
    private String hosScheduleId;

    @ApiModelProperty("安排日期")
    @TableField("reserve_date")
    private LocalDate reserveDate;

    @ApiModelProperty("安排时间（0：上午 1：下午）")
    @TableField("reserve_time")
    private Integer reserveTime;

    @ApiModelProperty("就诊人id")
    @TableField("patient_id")
    private Long patientId;

    @ApiModelProperty("就诊人名称")
    @TableField("patient_name")
    private String patientName;

    @ApiModelProperty("就诊人手机")
    @TableField("patient_phone")
    private String patientPhone;

    @ApiModelProperty("预约记录唯一标识（医院预约记录主键）")
    @TableField("hos_record_id")
    private String hosRecordId;

    @ApiModelProperty("预约号序")
    @TableField("number")
    private Integer number;

    @ApiModelProperty("建议取号时间")
    @TableField("fetch_time")
    private String fetchTime;

    @ApiModelProperty("取号地点")
    @TableField("fetch_address")
    private String fetchAddress;

    @ApiModelProperty("医事服务费")
    @TableField("amount")
    private BigDecimal amount;

    @ApiModelProperty("退号时间")
    @TableField("quit_time")
    private Date quitTime;

    @ApiModelProperty("订单状态")
    @TableField("order_status")
    private Integer orderStatus;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private Date updateTime;

    @ApiModelProperty("逻辑删除(1:已删除，0:未删除)")
    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;


}
